﻿using System;
using System.Collections.Generic;

namespace AspireFyh.ApiService.Entities;

public partial class Device
{
    public long Id { get; set; }

    public DateTime? CreateAt { get; set; }

    public DateTime? ModifyAt { get; set; }

    public string? Name { get; set; }

    public string? Location { get; set; }

    public string? Mac { get; set; }

    public string? Manufacture { get; set; }

    public string? Status { get; set; }

    public long? GatewayId { get; set; }

    public long? OrganizationId { get; set; }

    public string? TName { get; set; }

    public string? Description { get; set; }

    public string? SupertableName { get; set; }

    public string? Model { get; set; }

    public string? Type { get; set; }

    public DateTime? InstallDate { get; set; }

    public double? LocLat { get; set; }

    public double? LocLon { get; set; }

    public string? UpdateStatus { get; set; }

    public DateTime? UpdateTime { get; set; }

    public string? CurrentVersion { get; set; }

    public string? NextVersion { get; set; }

    public string? FilePath { get; set; }

    public string? UpdateResult { get; set; }

    public long? DeviceTypeId { get; set; }

    public long? OilId { get; set; }

    public string? Email { get; set; }

    public string? Phone { get; set; }

    public virtual ICollection<SensorPoint> DevicePoints { get; set; } = new List<SensorPoint>();

    public virtual ICollection<Organization> Organizations { get; set; } = new List<Organization>();
}
